package com.lovo.es.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "news_index")
public class NewsInfo {
    @Id
    @Field(type = FieldType.Keyword)
    private String id;
    @Field(type = FieldType.Keyword)
    private String newsTitle;
    @Field(type = FieldType.Text)
    private String newsInfo;
    @Field(type = FieldType.Keyword)
    private String newsDate;
}
